package com.wk.service.impl;

import com.wk.annotation.AddCacheAnnotation;
import com.wk.annotation.LogAnnotation;
import com.wk.dao.CmfzMenuDao;
import com.wk.entity.CmfzMenu;
import com.wk.service.CmfzMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CmfzMenuServiceImpl implements CmfzMenuService {


    @Autowired
    private CmfzMenuDao cmfzMenuDao;

    @AddCacheAnnotation
    @LogAnnotation(content = "查询菜单",type="select")
    @Override
    public List<CmfzMenu> findAll() {
        return cmfzMenuDao.findAll();
    }
}
